package com.yzd.learnjava.holding;

import java.util.HashSet;
import java.util.Random;
import java.util.Set;

import com.yzd.learnjava.util.Print;
/*
 * set
 */
public class SetOfInteger {

	public static void main(String[] args) {
		Random random = new Random(47);
		Set<Integer> intset = new HashSet<Integer>();
		for(int i = 0 ; i < 30; i++) {
			
			intset.add(random.nextInt(30));
			Print.print(intset);
		}
		Print.print(intset);
	}

}
